<?php
class hoadonsanpham extends CI_Controller
{
	function danhsachhoadonsp()
	{
		$data = array( 
			'dshd'=>$this->mhoadon->danhsachhoadonsanpham(),
			'page'=>'danhsachhoadon'
		);
		$this->load->view('admin/templateadmin', $data);
	}
	
	function xoahoadon($mahd)
	{
		$this->mhoadon->xoahd($mahd);
		redirect('admin/hoadonsanpham/danhsachhoadonsp');	
	}
	
	function thongtinhd($mahd)
	{
		$data = array(
			'page'=>'thongtinhoadon',
			'tthd'=>$this->mhoadon->thongtinhoadon($mahd)
		);
		$this->load->view('admin/templateadmin', $data);
	}
}

?>